package com.gsoe.base.client;

import com.gsoe.base.model.Result;
import com.gsoe.base.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(value = "auth-api")
public interface UserClient {
    @PostMapping("/user/getPowerListByRoleName")
    Result<List<String>> getPowerListByRoleName( String roleName);
    @PostMapping("/user/getRoleList")
    List<String> getRoleList(Long userId);

    @GetMapping("/user/getUserAllProblemCollect/{userId}")
    Result<List<Long>> getUserAllProblemCollect(@PathVariable("userId") Long id);
}
